import {configService, http, router, startApp} from 'hz-admin'
import Application from "./component/user/App"
import User from "./component/user/User"
import Role from "./component/user/Role"
import Authority from "./component/user/Authority"
import UserRole from "./component/user/UserRole"

let route = [
  {path: 'app', name: 'app', component: Application},
  {path: 'user', name: 'user', component: User},
  {path: 'role', name: 'role', component: Role},
  {path: 'authority', name: 'authority', component: Authority},
  {path: 'userRole', name: 'userRole', component: UserRole}
]

router.addRoutes(route)

configService.app = "sso"
configService.logout = "//10.168.2.17/ssoBack/logout"
http.defaults.baseURL = "//10.168.2.17"
startApp("#app")

